package com.cloudfun.campusshare.repo;

import com.cloudfun.campusshare.entity.RoleAuthorityRel;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Collection;
import java.util.List;

/**
 * Created by Huqin on 2020/5/7
 */
public interface RoleAuthorityRelRepo extends
        PagingAndSortingRepository<RoleAuthorityRel, String>,
        JpaSpecificationExecutor<RoleAuthorityRel> {

    List<RoleAuthorityRel> findAllByRoleId(String roleId);

    List<RoleAuthorityRel> findAllByRoleIdIn(Collection<String> roleIds);
}
